package com.example.sharding.domain.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.sharding.domain.entity.Department;
import com.example.sharding.domain.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 系统用户 Mapper 接口
 * </p>
 *
 * @author lxh123
 * @since 2019-12-04
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    List<Department> getDeptByUserId(@Param("userId") String userId);
}
